package com.youmu.shop.admin.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.youmu.shop.base.dao.BaseDao;
import com.youmu.shop.system.bean.Admin;

public interface AdminDao extends BaseDao<Admin>{
    int deleteByPrimaryKey(Long id);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);
    
    Admin selectAdminByUserNameForDispatching(String userName);

    /**
     * 查询含有角色的列表
     * @param asList
     */
    List<Admin> selectAdminInRoles(@Param("list") List<Long> list);
    
}